﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Excell_On_Services.ViewModels.ServiceModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <p class="mc_title">Managerment Services</p>
    <div class="content-box"><!-- Start Content Box -->
        <div class="content-box-header">
            <p>Create New</p>
            <div>
                <%: Html.ActionLink("Back to List", "Index") %>
            </div>
        </div>
        <div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">


    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

            <table cellpadding="5" id="add_new_item">
            
                    <tbody>
                        <tr>
                            <td></td>
                            <td><%: Html.HiddenFor(model => model.ServiceID)%></td>
                        </tr>
            
                        <tr>
                             <td class="ani_text"><%: Html.LabelFor(model => model.Name)%></td>
                            <td>
                                <%: Html.TextBoxFor(model => model.Name)%>
                                <%: Html.ValidationMessageFor(model => model.Name)%>
                            </td>
                         </tr>
                         <tr>
                             <td class="ani_text"><%: Html.LabelFor(model => model.ParentID)%></td>
                            <td>
                                <%: Html.DropDownListFor(model => model.ParentID, (SelectList)ViewData["ServiceType"],"-  Select Parent Service  -")%>
                                <%: Html.ValidationMessageFor(model => model.ParentID) %>
                            </td>
                         </tr>
                         <tr>
                             <td class="ani_text"><%: Html.LabelFor(model => model.Price)%></td>
                            <td>
                                <%: Html.TextBoxFor(model => model.Price)%>
                                <%: Html.ValidationMessageFor(model => model.Price)%>
                            </td>
                         </tr>
                         <tr>
                             <td colspan="2" class="ani_text"><%: Html.LabelFor(model => model.Description)%></td>
                         </tr>   
                           <td colspan="2">
                                <%: Html.TextAreaFor(model => model.Description) %>
                                <%: Html.ValidationMessageFor(model => model.Description) %>
                            </td>
                         </tr>
                    </tbody>
            </table>
        <% } %>

        </div>
    </div>
</div>

</asp:Content>

